package com.lu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.model.entity.SysRole;
import com.lu.model.request.RoleQueryRequest;
import com.lu.model.request.RoleResourcesUpdateRequest;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author wangqieyu
 * @since 2022-07-26
 */
public interface SysRoleService extends IService<SysRole> {

  Long addRole(SysRole role);

  SysRole updateRole(SysRole role);

  Integer updateStatus(Long id, Integer status);

  String deleteRole(Long id);

  Page<SysRole> pageList(RoleQueryRequest request);

  List<SysRole> roleList(RoleQueryRequest request);

  String updateResources(RoleResourcesUpdateRequest request);

  SysRole getByRoleId(Long id);

  List<SysRole> sort(List<Long> ids);

}
